$OpenBSD: patch-bam-0_4_0_make_unix_sh,v 1.1 2015/12/27 17:56:22 jasper Exp $

Don't hardcode compiler path and flags.

--- bam-0.4.0/make_unix.sh.orig	Mon Aug  9 20:08:24 2010
+++ bam-0.4.0/make_unix.sh	Sat Mar 17 15:05:51 2012
@@ -1,4 +1,4 @@
 #!/bin/sh
-gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
+${CC} ${CFLAGS}  -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
 src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua > src/internal_base.h
-gcc -Wall -ansi -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -ldl -O2 -rdynamic $*
+${CC} ${CFLAGS} -Wall -ansi -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -rdynamic $*
